/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ap.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.ap.entity.Fine;
import com.jeeplus.modules.ap.mapper.FineMapper;

/**
 * 罚款Service
 * @author 李超辉
 * @version 2018-12-18
 */
@Service
@Transactional(readOnly = true)
public class FineService extends CrudService<FineMapper, Fine> {

	public Fine get(String id) {
		return super.get(id);
	}
	
	public List<Fine> findList(Fine fine) {
		return super.findList(fine);
	}
	
	public Page<Fine> findPage(Page<Fine> page, Fine fine) {
		return super.findPage(page, fine);
	}
	public Page<Fine> findPage1(Page<Fine> page, Fine fine) {
		List<Fine> liat=getListByYue();
		page.setList(liat);
		return page;
	}
	public List<Fine> getListByYue(){
		return  mapper.getListByYue();
	};
	@Transactional(readOnly = false)
	public void save(Fine fine) {
		super.save(fine);
	}
	
	@Transactional(readOnly = false)
	public void delete(Fine fine) {
		super.delete(fine);
	}
	
}